		<div class="modal-content">
			<div class="modal-header btn-primary" >
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
				<h4 class="modal-title">Encaminhar Assistente</h4>
			</div>
			<form id="form" class='form-horizontal' role='form'>
			<input type="hidden" name="processo_id" value="<?php echo $processo_id; ?>" />
			<div class="modal-body">
				
					<div class="form-group">
					<label for="" class="col-sm-2 control-label">Selecione o assistente</label>
					<div class="col-sm-4">
						<?php 
							echo form_dropdown('assistente',$assistente,'','class="form-control" id="assistente"');
						?>
					</div>
					<div class="col-sm-2 control-label" style="text-align:left;color:red;">
					<?php echo form_error('nome_parte');?>	
					</div>	
					</div>
					<div class="form-group">
						<label for="" class="col-sm-2 control-label">Observação</label>
						<div class="col-sm-7">
							<?php 
								$data = array('name'=> 'observacao','id'=> 'observacao','placeholder'=> 'Observação','class'=> 'form-control input-sm', 'value'=> '','rows'=>'3' );
								echo form_textarea($data);
							?>
						</div>
					</div>  
			</div>
			<div class="modal-footer">	
				<button class="btn btn-primary" id="submit" type="submit" >Encaminhar</button>
				<a href="#" type="button"  data-dismiss="modal" class="btn btn-default">Cancelar</a>
				
				<!--<a href="#" type="button" id="submit" class="btn btn-primary">Encaminhar</a> -->
			</div>
			</form>
		</div>
	<script type="text/javascript">
		$(document).ready(function(){
			$("#submit").click(function(){
				$("#form").validate({
					rules: {
						assistente: "required",
						observacao: "required"
					},
					messages: {
						assistente: "Campo requerido",
						observacao: "Campo requerido"
					},
					submitHandler: function(form){
						var dados = $('#form').serialize();
						$.ajax({
							type: "POST",
							url: "<?php echo base_url('index.php/processos/assistente'); ?>",
							data: dados,
							success: function( data )
							{
								window.location.href = "<?php echo base_url('index.php/processos/consulta'); ?>";
								$('#addassis').modal('hide')
								$('#observacao').val('');
							},
							statusCode: {
								404: function() {
									$("#addassis").empty();
									alertify.error("Pagina nao encontrada");
								}
							}
						});
						return false;
					}
				});
			});
		});
	</script>